package com.yuantu.judiciary.dao;

import com.yuantu.judiciary.model.domain.UserInfoDO;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * 用户数据库操作
 *
 * @author syw
 * @since 2023-08-03
 **/
public interface IUserInfoDao extends JpaRepository<UserInfoDO, Long> {

    UserInfoDO findByPhoneAndDeletedFalse(String phone);

    UserInfoDO findByIdAndDeletedFalse(Long id);

    List<UserInfoDO> findUserByIdInAndDeletedFalse(List<Long> ids);

    UserInfoDO findByCertNoAndCertTypeAndDeletedFalse(String certNo, String certType);
}
